projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05cc03a
)
(shell-replace-by-expanded-directory):
author
Richard M. Stallman
<rms@gnu.org>
Fri, 10 May 2002 00:58:27 +0000
(
00:58
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Fri, 10 May 2002 00:58:27 +0000
(
00:58
+0000)
If there's already a / at the end, don't add one.
lisp/shell.el
patch
|
blob
|
history
diff --git
a/lisp/shell.el
b/lisp/shell.el
index fb427aa9f72dc5e1cbc67c931ccffac5da09a604..0b2b7543218588cb00fafd029ec011b362022a3e 100644
(file)
--- a/
lisp/shell.el
+++ b/
lisp/shell.el
@@
-993,7
+993,7
@@
Returns t if successful."
(let ((stack (cons default-directory shell-dirstack))
(index (cond ((looking-at "=-/?")
(length shell-dirstack))
- ((looking-at "=\\([0-9]+\\)")
+ ((looking-at "=\\([0-9]+\\)
/?
")
(string-to-number
(buffer-substring
(match-beginning 1) (match-end 1)))))))